import React from 'react'
import viewRouterUtils from '@/ui/antd/service/router/utils/viewRouterUtils'
import ViewRouteDto from '@/ui/antd/service/router/types/model/dto/ViewRouteDto'

// 模块
const routes = [
	{
		path: '/oss/application',
		title: '对象存储应用',
		icon: 'fa-solid fa-server',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/oss/OssApplicationList/OssApplicationList')),
		),
	},
	{
		path: '/oss/application/config',
		title: '对象存储应用配置',
		icon: 'fa-solid fa-gear',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/oss/OssApplicationConfigList/OssApplicationConfigList')),
		),
	},
	{
		path: '/oss/supplier',
		title: '对象存储供应商',
		icon: 'fa-solid fa-gear',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/oss/OssSupplierList/OssSupplierList'))),
	},
	{
		path: '/oss/application/supplier',
		title: '对象存储供应用与供应商',
		icon: 'fa-solid fa-gear',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/oss/OssApplicationSupplierList/OssApplicationSupplierList')),
		),
	},
] as ViewRouteDto[]

export default routes
